import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/home'

Vue.use(Router)

export default new Router({
  mode: 'history',
  base: process.env.BASE_URL,
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home
    },
    {
      path: '/1',
      component: () => import(/* webpackChunkName: "1" */ './components/1.vue')
    },
    {
      path: '/2',
      component: () => import(/* webpackChunkName: "2" */ './components/2.vue')
    },
    {
      path: '/3',
      component: () => import(/* webpackChunkName: "3" */ './components/3.vue')
    },{
      path: '/4',
      component: () => import(/* webpackChunkName: "4" */ './components/4.vue')
    }
    // {
    //   path: '/cart',
    //   meta: {
    //     title: '购物车'
    //   },
    //   name: 'cart',
    //   component: () => import(/* webpackChunkName: "cart" */ './views/cart.vue')
    // }
  ]
})
